home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK1.toast / Development Kits (Disc 1) / MacSNMP / SNMP Agents Dev Kit / Sample Agent / SampleAgent Read Me < prev   
Encoding:
Text File  |  1994-11-21  |  7.4 KB  |  165 lines  |  [ttro/ttxt]

  1. SNMP Sample Agent Read Me version 1.1
  2. ############################
  3.  
  4. May 12, 1994
  5. Copyright ©1994, Apple Computer, Inc. 
  6. All rights reserved.
  7.  
  8. Required Disks
  9. =============
  10.  
  11. To run the SNMP Sample Agent, you need to install the AppleTalk Connection disk and/or the TCP/IP Connection disk.  In addition, the AppleTalk Administration disk and/or the TCP/IP Connection disk contains other files you may need later.
  12.  
  13.  
  14. Installation procedure
  15. ====================
  16.  
  17. Pre-requisites:
  18. --------------
  19. To install and run MacSNMP you will need a Macintosh computer running System 7.0 or later.
  20.  
  21. Procedure:
  22. ----------
  23. 1. Run the Installer which is found on the “AppleTalk Connection” disk.  The Installer will install the MacSNMP files into the correct folders in the System Folder.  In addition to installing the SNMP software,  the Installer makes sure that you are using the correct version of AppleTalk  and Network drivers.  The Installer also installs the "Shared Library Manager".
  24.  
  25. The Shared Library Manager and MacSNMP will become active when your machine is restarted.
  26.  
  27. 2. Place a copy of the "SNMP Sample Agent"  (found in the Tools folder of the MacSNMP Developer disk)  into  your System Extensions folder.
  28.  
  29. 3. Restart your Macintosh.  The sample agent, as shipped, is set to preload at system startup.
  30. This can be changed by modifying statements in the code (see the sample agent code).
  31.  
  32. 4. The agent should now be installed. You may now use the SNMP Tool "DrWatson" in SNMP/DDP mode to query the agent.  This tool, along with the "SNMPAgentTool" for loading and unloading agents, can be found in the Tools folder of the "MacSNMP Developer" disk.  You can also use the "MacSNMP Admin" setup application (found on the "AppleTalk Administration" disk) to view or modify the community configuration and view variable values and other information.  
  33.  
  34. Note:  There is also a "MacSNMP Client" application (found on the "AppleTalk Connection" disk) which can be used to view configuration and variable values, but which cannot be used to make configuration changes.
  35.  
  36. 5. To remove the agent, either remove it from your extensions folder and reboot, or use the
  37. "SNMPAgentTool" to shut it down. 
  38.  
  39. Nota Bene:
  40. ----------
  41. The libraries and header files from the “ASLM Developer Tools” version 1.1.1 that are included in this disk are compatible with the “Shared Library Manager” version 1.1.2.
  42.  
  43.  
  44. Building the “SNMP Sample Agent”
  45. ===============================
  46.  
  47. Pre-requisites:
  48. --------------
  49.  
  50. Files you need to be able to build the Sample Agent. These can be found in the E.T.O. CD 
  51. ROM:
  52.     1.  MPW 3.2 or later
  53.     2.  MPW C++ 3.2 or later
  54.     3.  Installation of MacSNMP as described above
  55.     4.  The "MacSNMP Developer" disk version 1.1
  56.  
  57. Procedure:
  58. ---------
  59.  
  60. 1.  Copy the entire MacSNMP Developer disk into a folder named "MacSNMP Developer" on your hard disk.
  61.  
  62. 2.  Launch MPW 3.2 and add the Tools folder in MacSNMP developer Folder to the command search path. This is done by a single command from the shell (where Path is the location of the folder.)
  63.  
  64.     Set Commands "Path:MacSNMP Developer:Tools:,{Commands}"
  65.  
  66. 3.  Modify the files SampleAgent.exp, SampleAgent.cp, SampleAgent.h, SampleVar.h, and SampleAgent.r to suit your needs.
  67.     - The Shared Library Manager Interfaces are in the “MacSNMP Developer:Shared Library Manager Interfaces” folder. 
  68.     - The SNMP Interfaces are in the “MacSNMP Developer:SNMP Interfaces” folder.  
  69.     - The Sample Agent sources are in the “MacSNMP Developer:Sample Agent:source”
  70.         folder.  
  71.     - The Sample Agent objects are in the “MacSNMP Developer:Sample Agent:objects” 
  72.         folder.  
  73.  
  74. 4. In MPW, set the Directory to “MacSNMP Developer:Sample Agent:”.
  75.  
  76. 5.  In MPW, select the item “Build…” from the Build menu.  When the dialog appears type “All” and press the enter button.
  77.  
  78. 6.  When the build completes, the built SNMP Sample Agent will be in the “MacSNMP Developer:Sample Agent:built:” folder.  Move the newly built Sample Agent into your Systems Extensions Folder  (NOTE :  If the Sample agent is already in the extensions folder, you will have to remove it before placing the new one in the folder).
  79.  
  80. 7.  If the preload option is set on the sample agent (see sample agent code), you can load the new sample agent by restarting your Macintosh.  This will automatically load it.  If the preload option is not set, or you do not wish to restart your machine, you can load the new Sample Agent using the “SNMPAgentTool” as follows:
  81.  
  82.     - Use the “SNMPAgentTool” to remove the old sample agent.
  83.   
  84.     - Move the old sample agent out of the extensions folder (if you haven't already)
  85.     and place the new one in the extensions folder.
  86.   
  87.     - Use the “SNMPAgentTool" to load the new sample agent. 
  88.  
  89. NOTE:  Upon modifying the SNMP Sample Agent, errors could be introduced which would prevent it from loading.  If this happens, you might not be able to startup your machine.  To work around this you can hold down the shift key while restarting.  This will prevent the Shared Library Manager and all libraries (including MacSNMP) from loading.
  90.  
  91. ----------------------------------------------------------------------------------
  92. Shared Libraries:
  93.     The following shared libraries are placed your Extensions folder.
  94.  
  95.         Shared Library Manager Objects:
  96.  
  97.                 1. Shared Library Manager - The core of Shared Library Manager.
  98.  
  99.         SNMP Shared Libraries:
  100.  
  101.                 1. SNMP Manager - The core SNMP Implementation
  102.                 2. SNMP AppleTalk Transport - The DDP Transport shared library for SNMP
  103.                 3. SNMP AppleTalk Agent - The AppleTalk agent shared library
  104.                 4. SNMP Macintosh Agent - The Macintosh System agent shared library
  105.                 5. SNMP Sample Agent - The sample agent shared library
  106.  
  107. ----------------------------------------------------------------------------------
  108. Source Files
  109.  
  110. Header Files:
  111.     The header files you need to compile your agent implementation.
  112.  
  113.         MacSNMP 1.1 header files:
  114.  
  115.                 1. SNMP.h - SNMP  Types
  116.                 2. SNMPVarTypes.h  - SNMP constants used by both .cp and .r files
  117.                 3. SNMPTypes.r - SNMP Resource definitions
  118.                 4. SNMPVersionResource.r - SNMP version definitions
  119.                 5. TSNMP.h - SNMP class declarations
  120.  
  121.         Shared Library Manager header files 
  122.  
  123.                 1. LibraryManager.h
  124.                 2. LibraryManagerClasses.h
  125.                 3. LibraryManagerUtilities.h
  126.                 4. VersionResource.r
  127.  
  128.     The source files (other than those listed above) needed to build the Sample Agent
  129.  
  130.         SNMP Sources:
  131.  
  132.                 1. SampleAgent.cp - The main routines - member and non-member functions
  133.                 2. SampleAgent.exp 
  134.                 3. SampleAgent.r - Resource file needed for the build
  135.                 4. SampleAgent.h - Header file for the Sample Agent
  136.                 5. SampleVar.h - Header file for the Sample Agent Variables classes
  137.  
  138. Libraries:
  139.     The library files you need to link your programs.
  140.  
  141.         Shared Library Manager libraries:
  142.  
  143.                 1. LibraryManager.n.o
  144.                 2. LibraryManager.o
  145.  
  146.         MacSNMP 1.1 Libraries:
  147.  
  148.                 1. SNMPLibrary.cln.o 
  149.                 2. SNMPLibrary.clf.o
  150.  
  151. Makefile:
  152.     The Makefile is needed to build the Sample Agent.
  153.  
  154.                 1. Makefile
  155.  
  156. Tools:
  157.     Tools need for compiling and linking agents
  158.  
  159.         Shared Library Manager tools:
  160.  
  161.                 1. LibraryBuilder
  162.                 2. BuildSharedLibrary
  163.                 3. LinkSharedLibrary
  164.  
  165.